<?php
/* @var $this ObjectController */
/* @var $model Object */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'object-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'country_id'); ?>
		<?php echo $form->dropDownList($model,'country_id',CSelect::items('Country'),  array('empty' => ('Select a country'))); ?>
		<?php echo $form->error($model,'country_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'city_id'); ?>
		<?php echo $form->dropDownList($model,'city_id',CSelect::items('City'),  array('empty' => ('Select a city'))); ?>
		<?php echo $form->error($model,'city_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'street'); ?>
		<?php echo $form->textField($model,'street',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'street'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'house'); ?>
		<?php echo $form->textField($model,'house',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'house'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'apartment'); ?>
		<?php echo $form->textField($model,'apartment',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'apartment'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textArea($model,'description',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price'); ?>
		<?php echo $form->textField($model,'price'); ?>
		<?php echo $form->error($model,'price'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price_week'); ?>
		<?php echo $form->textField($model,'price_week'); ?>
		<?php echo $form->error($model,'price_week'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price_month'); ?>
		<?php echo $form->textField($model,'price_month'); ?>
		<?php echo $form->error($model,'price_month'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price_clean'); ?>
		<?php echo $form->textField($model,'price_clean'); ?>
		<?php echo $form->error($model,'price_clean'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price_security_deposit'); ?>
		<?php echo $form->textField($model,'price_security_deposit'); ?>
		<?php echo $form->error($model,'price_security_deposit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'price_extra_people'); ?>
		<?php echo $form->textField($model,'price_extra_people'); ?>
		<?php echo $form->error($model,'price_extra_people'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'house_rules'); ?>
		<?php echo $form->textArea($model,'house_rules',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'house_rules'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'size'); ?>
		<?php echo $form->textField($model,'size'); ?>
		<?php echo $form->error($model,'size'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'check_in'); ?>
		<?php echo $form->textField($model,'check_in',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'check_in'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'check_out'); ?>
		<?php echo $form->textField($model,'check_out',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'check_out'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'accommodates'); ?>
		<?php echo $form->textField($model,'accommodates'); ?>
		<?php echo $form->error($model,'accommodates'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'bedrooms'); ?>
		<?php echo $form->textField($model,'bedrooms'); ?>
		<?php echo $form->error($model,'bedrooms'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'minimum_stay'); ?>
		<?php echo $form->textField($model,'minimum_stay'); ?>
		<?php echo $form->error($model,'minimum_stay'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->